package com.tx.admin.core.anno;

import static java.lang.annotation.ElementType.METHOD;
import static java.lang.annotation.RetentionPolicy.RUNTIME;

import java.lang.annotation.Retention;
import java.lang.annotation.Target;

@Retention(RUNTIME)
@Target(METHOD)
public @interface RequestMax {

	//最大请求次数
	int value() default 3;
	
	//锁定多少秒
	int locktime() default 60;
	
	String errorMsg() default "请求过于频繁,请在${locktime}秒稍后再试";

}
